
#include "stdafx.h"
#include "HRKNodeTable.h"

void CHrkNodeTable::AddTree(IGameNode* pNode)
{
	m_nodes.push_back( pNode );

	int nChild = pNode->GetChildCount();

	for( int i = 0;i<nChild;i++ )
	{
		IGameNode* pChildNode = pNode->GetNodeChild( i );
		AddTree( pChildNode );
	}
}

void CHrkNodeTable::CleanUp()
{
	int n = (int) m_nodes.size();
	for( int i = 0;i<n;i++ )
	{
		//m_nodes[i]->ReleaseIGameObject();
	}
	m_nodes.clear();
}